From abbb8136037748606d09406130a9532493fa2342 Mon Sep 17 00:00:00 2001 From: tsteven4 <13596209+tsteven4@users.noreply.github.com> Date: Wed, 19 May 2021 14:58:23 -0600 Subject: [PATCH] fix map preview bug that dropped tracks with 2 pts. (#714) --- gui/gpx.cc | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/gui/gpx.cc b/gui/gpx.cc index 461610a8b..09184873b 100644 --- a/gui/gpx.cc +++ b/gui/gpx.cc @@ -39,12 +39,10 @@ static QDateTime decodeDateTime(const QString& s) static bool trackIsEmpty(const GpxTrack& trk) { int count = 0; - for (int i=0; i< trk.getTrackSegments().size(); i++) { - for (int j=0; j=2) { + if (currentRte.getRoutePoints().size() >= 2) { rteList << currentRte; } } -- 2.30.2